<?php
namespace app\services\ai\traits\youtu;

trait ImageProcessorTrait
{
    public function faceMerge($options)
    {
        return $this->request(self::POST, self::API_MERGE_FACE, $this->parseOptions([
            'img_data' => $options['img_data'] ?? '',
            'rsp_img_type' => $options['rsp_img_type'] ?? 'url',
            'opdata' => [
                [
                    'cmd' => 'doFaceMerge',
                    'params' => [
                        'model_id' => $options['model_id'] ?? '',
                    ]
                ]
            ]
        ]));
    }
}
